<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<!DOCTYPE html>
<html lang="zh-CN"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.js"></script>
</head>
	<jsp:include page="include/head.jsp">
		<jsp:param value="${ep}" name="ep"/>
	</jsp:include>
	
	<body class="body">
		<div class="container">
			<div class="row">
				<div class="span9">
		        	<div class="page-header">
		        		<h2>项目列表</h2>
		        	</div>
		        	<a href="project.jspx?_m=newProject" class="btn btn-success"><i class="icon-plus icon-white"></i>开始一个新项目</a>
				 	<c:choose>
				  		<c:when test="${fn:length(pager.result) == 0 }">
						    <ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
								<li class="active">
									<a href="#">没有任何项目</a>
								</li>
							</ul>
							<div class="wall">
								<p>没有任何项目</p>
							</div>
				  		</c:when>
				  		<c:otherwise>
				  			<c:forEach items="${requestScope.pager.result }" var="project" varStatus="v">
					  			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
									<li class="active">
										<a href="project.jspx?id=${project.id}"><i class="icon-th"></i>${project.name}</a>
									</li>
									<li style="float:right;margin-right:5px;">
										<p>创建时间：${project.createtime}</p>
									</li>
								</ul>
								<div class="wall">
									<p>${project.desc}</p>
								</div>
							</c:forEach>
							<jsp:include page="include/pager.jsp">
								<jsp:param value="${pager}" name="pager"/>
								<jsp:param value="main.jspx" name="jspx"/>
							</jsp:include>
				  		</c:otherwise>
 						</c:choose>
				</div>
				<div class="span3">
				
				</div>
			</div>
		</div>
	
	</body>
</html>
